.class Lcom/xingbook/ui/c/f;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/c/b;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/ui/c/f;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const/4 v6, 0x2

    const/4 v5, 0x0

    const/4 v4, 0x1

    iget-object v0, p0, Lcom/xingbook/ui/c/f;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ui/c/b;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v1, p1, Landroid/os/Message;->what:I

    if-ne v1, v6, :cond_2

    iget-object v1, v0, Lcom/xingbook/ui/c/b;->o:Lcom/xingbook/d/c;

    invoke-interface {v1}, Lcom/xingbook/d/c;->a()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lcom/xingbook/ui/c/b;->b()V

    goto :goto_0

    :cond_2
    invoke-static {v0}, Lcom/xingbook/ui/c/b;->a(Lcom/xingbook/ui/c/b;)Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-static {v0, v5}, Lcom/xingbook/ui/c/b;->a(Lcom/xingbook/ui/c/b;Z)V

    goto :goto_0

    :cond_3
    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    invoke-static {v0}, Lcom/xingbook/ui/c/b;->c(Lcom/xingbook/ui/c/b;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, v0, Lcom/xingbook/ui/c/b;->i:[Lcom/xingbook/ui/b/a;

    iget v2, v0, Lcom/xingbook/ui/c/b;->f:I

    aget-object v1, v1, v2

    invoke-virtual {v1}, Lcom/xingbook/ui/b/a;->getPageType()I

    move-result v1

    iget-object v2, v0, Lcom/xingbook/ui/c/b;->i:[Lcom/xingbook/ui/b/a;

    iget v3, v0, Lcom/xingbook/ui/c/b;->f:I

    aget-object v2, v2, v3

    invoke-virtual {v2}, Lcom/xingbook/ui/b/a;->g()V

    if-ne v1, v6, :cond_8

    invoke-static {v0}, Lcom/xingbook/ui/c/b;->d(Lcom/xingbook/ui/c/b;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, v0, Lcom/xingbook/ui/c/b;->o:Lcom/xingbook/d/c;

    invoke-interface {v1}, Lcom/xingbook/d/c;->b()Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-static {v0}, Lcom/xingbook/ui/c/b;->e(Lcom/xingbook/ui/c/b;)Lcom/xingbook/c/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/a;->d()V

    :cond_4
    :goto_1
    invoke-static {v0}, Lcom/xingbook/ui/c/b;->f(Lcom/xingbook/ui/c/b;)I

    move-result v1

    if-nez v1, :cond_7

    iget-object v1, v0, Lcom/xingbook/ui/c/b;->o:Lcom/xingbook/d/c;

    invoke-interface {v1}, Lcom/xingbook/d/c;->c()Z

    move-result v1

    if-eqz v1, :cond_6

    invoke-virtual {v0, v4}, Lcom/xingbook/ui/c/b;->b(Z)V

    goto :goto_0

    :pswitch_1
    invoke-static {v0}, Lcom/xingbook/ui/c/b;->b(Lcom/xingbook/ui/c/b;)Lcom/xingbook/ui/c/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/c/a;->b()V

    iget v1, p1, Landroid/os/Message;->arg2:I

    if-ne v1, v4, :cond_0

    iget v1, p1, Landroid/os/Message;->arg1:I

    invoke-static {v0, v1}, Lcom/xingbook/ui/c/b;->a(Lcom/xingbook/ui/c/b;I)V

    goto :goto_0

    :cond_5
    invoke-static {v0}, Lcom/xingbook/ui/c/b;->e(Lcom/xingbook/ui/c/b;)Lcom/xingbook/c/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/a;->b()V

    goto :goto_1

    :cond_6
    invoke-virtual {v0, v4, v4}, Lcom/xingbook/ui/c/b;->a(ZZ)V

    goto :goto_0

    :cond_7
    invoke-static {v0}, Lcom/xingbook/ui/c/b;->f(Lcom/xingbook/ui/c/b;)I

    goto/16 :goto_0

    :cond_8
    if-ne v1, v4, :cond_9

    invoke-virtual {v0, v5, v4}, Lcom/xingbook/ui/c/b;->a(ZZ)V

    goto/16 :goto_0

    :cond_9
    const/4 v2, 0x3

    if-eq v1, v2, :cond_a

    const/4 v2, 0x4

    if-ne v1, v2, :cond_b

    :cond_a
    invoke-virtual {v0, v5}, Lcom/xingbook/ui/c/b;->b(Z)V

    goto/16 :goto_0

    :cond_b
    const/16 v2, 0x8

    if-ne v1, v2, :cond_0

    invoke-virtual {v0, v5, v4}, Lcom/xingbook/ui/c/b;->a(ZZ)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
